//
//  NewHomeInfoFooterView.m
//  GC_OC
//
//  Created by  Quan He on 2022/4/9.
//

#import "NewHomeInfoFooterView.h"

@interface NewHomeInfoFooterView()
@property (nonatomic, strong) UIView *backView;
@end

@implementation NewHomeInfoFooterView

- (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithReuseIdentifier:reuseIdentifier];
    if (self) {
        self.contentView.backgroundColor = [UIColor colorWithRed:0.96 green:0.97 blue:0.98 alpha:1.00];
        self.backgroundColor = [UIColor colorWithRed:0.96 green:0.97 blue:0.98 alpha:1.00];
        [self.contentView addSubview:self.backView];
        self.clipsToBounds = YES;
    }
    return self;
}

- (UIView *)backView {
    if (!_backView) {
        _backView = [[UIView alloc] initWithFrame:CGRectMake(16, 0, SCREEN_WIDTH - 32, 26)];
        _backView.backgroundColor = [UIColor whiteColor];
        CAShapeLayer *layer = [CAShapeLayer layer];
        UIBezierPath *path = [UIBezierPath bezierPathWithRoundedRect:_backView.bounds byRoundingCorners:UIRectCornerBottomLeft | UIRectCornerBottomRight cornerRadii:CGSizeMake(16, 16)];
        layer.path = path.CGPath;
        _backView.layer.mask = layer;
    }
    return _backView;
}
@end
